package com.example.assign2_list;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;

public class StopAlarm extends Activity{
	private MediaPlayer mp;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.alarm_stop);
        
        /*	Create MediaPlayer with alarm mp3	*/
        mp = MediaPlayer.create(this, R.raw.bird);
        mp.setLooping(true);
        mp.start();  
    }
	
	/*	if button pushed */
	public void alarmStop(View v){
		mp.stop();
		finish();
	}
}
